<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>数组的join方法</title>
</head>
<body>
  <script>
    /**
     * join: 用指令的字符串连接数组中元素，返回一个连接好的字符串
     */
    let nums = [333, 999, 666, 888]
    // '333-999-666-888'
    // console.log(nums.join('-'))
    console.log(nums.join(''))

    console.log(nums)
    

  </script>
</body>
</html>